﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ReimbEdit.aspx.cs" Inherits="DuJianliang.ApplicationPlatform.Reimb.ReimbEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        #table
        {
            margin: auto auto;       	    
        }
        #table, tr
        {
            height: 25px;    
        }
        .td1
        {
            width: 60px;
            padding: 0px 10px 0px 10px;
            background-color: #F5F5F5;
        }
        .td2
        {
            width: 5px;
            background-color: Pink;
        }        
        .td3
        {
            width: 400px;
            padding: 5px 10px 5px 10px;            
            background-color: #F5F5F5;
        }        
        .tdHeader
        {
            height: 35px;
            text-align: center;
            background-color: #F5F5F5;            
        }
        .tdBottom
        {
            height: 35px;
            text-align: center;
            background-color: #F5F5F5;            
        }
    </style>
</head>
<body style="font-size:12px">
    <form id="form1" runat="server">
    <table id="table" border="0" cellspacing="1" cellpadding="0">
        <tr>
            <td class="tdHeader" colspan="3">
                <asp:Label ID="lblHeader" runat="server" Text="Remib" Font-Bold="True" 
                    Font-Names="Verdana" Font-Size="18px"></asp:Label>
            </td>            
        </tr>
        <tr>
            <td class="td1">部门</td>
            <td class="td2"></td>
            <td class="td3">
                <asp:TextBox ID="txtDept" runat="server" Width="98%"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvDept" runat="server" 
                    ControlToValidate="txtDept" Font-Names="Verdana" ForeColor="Red" 
                    Display="Dynamic">必须填写</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="td1">报销人</td>
            <td class="td2"></td>
            <td class="td3">
                <asp:TextBox ID="txtReimbName" runat="server" Width="98%"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvReimbName" runat="server" 
                    ControlToValidate="txtDept" Font-Names="Verdana" ForeColor="Red" 
                    Display="Dynamic">必须填写</asp:RequiredFieldValidator>
            </td>           
        </tr>
        <tr>
            <td class="td1">币种</td>
            <td class="td2"></td>
            <td class="td3"><asp:DropDownList ID="ddlCurrency" runat="server" Width="100%">
                <asp:ListItem Selected="True">USD</asp:ListItem>
                <asp:ListItem>RMB</asp:ListItem>
                </asp:DropDownList></td>            
        </tr>
        <tr>
            <td class="td1">金额</td>
            <td class="td2"></td>
            <td class="td3">
                <asp:TextBox ID="txtAmount" runat="server" Width="98%" Text="0.00"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvAmount" runat="server" 
                    ControlToValidate="txtAmount" Font-Names="Verdana" ForeColor="Red" 
                    Display="Dynamic">必须填写</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="txtAmount" Display="Dynamic" Font-Names="Verdana" 
                    Font-Size="12px" ForeColor="Red" ValidationExpression="^[0-9]+(.[0-9]{2})?$">必须是数字(最多2位小数)</asp:RegularExpressionValidator>
            </td>            
        </tr>
        <tr>
            <td class="td1">用途</td>
            <td class="td2"></td>
            <td class="td3">
                <asp:TextBox ID="txtPurpose" runat="server" Width="98%" Height="50px" TextMode="MultiLine"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvPurpose" runat="server" 
                    ControlToValidate="txtDept" Font-Names="Verdana" ForeColor="Red" 
                    Display="Dynamic">必须填写</asp:RequiredFieldValidator>
            </td> 
        </tr>   
        <tr>
            <td class="tdBottom" colspan="3">                
                <asp:Button ID="btnOK" runat="server" Text="确定" Height="25px" Width="80px" 
                    onclick="btnOK_Click" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="btnCancel" runat="server" Text="取消" Height="25px" 
                    Width="80px" onclick="btnCancel_Click" CausesValidation="False" />
            </td>            
        </tr>     
    </table>
    </form>
</body>
</html>
